/* 全局样式 */
body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #f2f2f2;
    color: #333;
}

/* Layui布局调整 */
.layui-layout-admin .layui-header {
    background-color: #23262E;
}

.layui-layout-admin .layui-side {
    background-color: #23262E;
}

.layui-layout-admin .layui-body {
    background-color: #f2f2f2;
}

.layui-layout-admin .layui-footer {
    background-color: #23262E;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

/* 卡片样式增强 */
.layui-card {
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.layui-card-header {
    background-color: #fff;
    border-bottom: 1px solid #e6e6e6;
    font-weight: 600;
    padding: 15px;
}

.layui-card-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.layui-card-body {
    padding: 15px;
}

/* 按钮样式增强 - 确保按钮正确显示 */
.layui-btn {
    display: inline-block;
    height: 38px;
    line-height: 38px;
    padding: 0 18px;
    background-color: #009688;
    color: #fff;
    white-space: nowrap;
    text-align: center;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.layui-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.layui-btn:active {
    opacity: 1;
}

/* 按钮尺寸 */
.layui-btn-xs {
    height: 22px;
    line-height: 22px;
    padding: 0 5px;
    font-size: 12px;
}

.layui-btn-sm {
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.layui-btn-lg {
    height: 44px;
    line-height: 44px;
    padding: 0 25px;
    font-size: 16px;
}

/* 按钮颜色 - 使用!important确保优先级 */
.layui-btn-primary {
    background-color: #fff !important;
    color: #333 !important;
    border: 1px solid #e6e6e6 !important;
}

.layui-btn-primary:hover {
    background-color: #f2f2f2 !important;
    color: #333 !important;
}

.layui-btn-normal {
    background-color: #1E9FFF !important;
    color: #fff !important;
}

.layui-btn-normal:hover {
    background-color: #0D8AE6 !important;
    color: #fff !important;
}

.layui-btn-warm {
    background-color: #FFB800 !important;
    color: #fff !important;
}

.layui-btn-warm:hover {
    background-color: #E6A600 !important;
    color: #fff !important;
}

.layui-btn-danger {
    background-color: #FF5722 !important;
    color: #fff !important;
}

.layui-btn-danger:hover {
    background-color: #E64A19 !important;
    color: #fff !important;
}

/* 表格样式增强 */
.layui-table {
    border-radius: 4px;
    overflow: hidden;
}

.layui-table thead tr {
    background-color: #f8f8f8;
}

.layui-table thead th {
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e6e6e6;
}

/* 表单样式增强 */
.layui-form-label {
    font-weight: 500;
    color: #333;
}

.layui-input, .layui-textarea {
    border-radius: 2px;
    border: 1px solid #e6e6e6;
    transition: border-color 0.3s ease;
}

.layui-input:focus, .layui-textarea:focus {
    border-color: #1E9FFF;
    box-shadow: 0 0 0 2px rgba(30, 159, 255, 0.2);
}

/* 导航样式增强 */
.layui-nav .layui-nav-item a {
    color: #fff;
    transition: all 0.3s ease;
}

.layui-nav .layui-nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.layui-nav .layui-nav-itemed > a {
    background-color: #1E9FFF;
}

.layui-nav-tree .layui-nav-item a {
    color: #fff;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.layui-nav-tree .layui-nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.layui-nav-tree .layui-nav-itemed > a {
    background-color: #1E9FFF;
}

/* 徽章样式 */
.layui-badge {
    border-radius: 2px;
    font-size: 12px;
    padding: 4px 8px;
}

.layui-bg-green {
    background-color: #5FB878;
}

.layui-bg-orange {
    background-color: #FFB800;
}

.layui-bg-red {
    background-color: #FF5722;
}

.layui-bg-blue {
    background-color: #1E9FFF;
}

/* 进度条样式 */
.layui-progress {
    border-radius: 2px;
    overflow: hidden;
}

.layui-progress-bar {
    border-radius: 2px;
}

/* 分页样式 */
.layui-laypage {
    text-align: center;
}

.layui-laypage a, .layui-laypage span {
    border-radius: 2px;
    margin: 0 2px;
}

.layui-laypage a:hover {
    background-color: #1E9FFF;
    color: #fff;
}

.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: #1E9FFF;
    border-radius: 2px;
}

/* 模态框样式 */
.layui-layer {
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.layui-layer-title {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e6e6e6;
    font-weight: 600;
}

/* 聊天界面样式 */
.chat-messages {
    background-color: #f8f8f8;
    border-radius: 4px;
    border: 1px solid #e6e6e6;
}

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message.assistant {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 4px;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message.user .message-content {
    background-color: #1E9FFF;
    color: white;
}

.message.assistant .message-content {
    background-color: white;
    border: 1px solid #e6e6e6;
}

.message-time {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 会话历史样式 */
.session-item {
    padding: 10px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
}

.session-item:hover {
    background-color: #f2f2f2;
    border-color: #1E9FFF;
}

.session-item.active {
    background-color: #e3f2fd;
    border-color: #1E9FFF;
    color: #1E9FFF;
}

.session-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.session-time {
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .layui-layout-admin .layui-side {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .layui-layout-admin .layui-side.layui-side-show {
        transform: translateX(0);
    }
    
    .layui-layout-admin .layui-body {
        margin-left: 0;
    }
    
    .layui-nav .layui-nav-item {
        display: block;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1E9FFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background-color: #FFB800;
    color: #fff;
}

.status-processing {
    background-color: #1E9FFF;
    color: #fff;
}

.status-completed {
    background-color: #5FB878;
    color: #fff;
}

.status-failed {
    background-color: #FF5722;
    color: #fff;
}

/* 文件类型图标 */
.file-type-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.file-type-pdf {
    color: #FF5722;
}

.file-type-word {
    color: #1E9FFF;
}

.file-type-excel {
    color: #5FB878;
}

.file-type-text {
    color: #999;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.empty-state h4 {
    margin-bottom: 10px;
    color: #666;
}

.empty-state p {
    color: #999;
    line-height: 1.5;
} 